type DisplayNameProps = {
  firstName: string;
  lastName: string;
};

/**
 * 简单计算属性示例
 */
export default function DisplayName(props: DisplayNameProps) {
  const fullname = () => `${props.firstName} ${props.lastName}`;
  return (
    <div>
      {fullname()}({fullname().toUpperCase()})
    </div>
  );
}
